#include "ConcreteSubject.h"

namespace Observer{
    ConcreteSubject::ConcreteSubject(): Subject() {
        this->state = 1;
    }

    int ConcreteSubject::getState() {
        return state;
    }

    void ConcreteSubject::setState(int state) {
        this->state = state;
        Subject::notify();
    }
}
